package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 面试评分模块表
 * </p>
 *
 * @author hpiggy
 * @since 2024-11-28
 */
@Data
@TableName("adms_grade_module")
@ApiModel(value = "GradeModule对象", description = "面试评分模块表")
public class GradeModule implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("模块名称")
    private String moduleName;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("状态0关闭，1正常")
    private Integer status;

    @ApiModelProperty("1面试 2试岗 3试用  选多个用逗号（,）隔开")
    private String type;

    @TableLogic
    private Integer deleted;

    @TableField(exist = false)
    @ApiModelProperty("评分详情")
    private List<GradeDetails> gradeDetailsList;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("created_at")
    private LocalDateTime createdAt;

//    @TableField(exist = false)
//    @ApiModelProperty("分数")
//    private Integer score;


}
